home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / util / misc / gpatch.lha / GPatch / ExampleScripts / UpdateMyProgram < prev   
Encoding:
Text File  |  2002-08-18  |  834 b   |  27 lines

  1.  
  2. ;Patch the files on the distribution disk "MyProgram".
  3.  
  4. ;The quotes in the command lines are only necessary if the path/filename
  5. ;contains spaces.
  6.  
  7. echo "*N Please wait..."
  8. assign MyProgram: remove ; if you install the update on disk and the disk name
  9.                          ; and the assign from the user-startup are identical
  10. failat 10
  11.  
  12. gpatch "MyProgram:MyProgram" "MyProgram.patches" DIRECT
  13.  
  14. gpatch "MyProgram:MyProgram.readme" "MyProgram.patches" DIRECT
  15.  
  16. ; If you are working on floppy disks, it may be better to copy the files to a
  17. ; faster location, because the lot of file seek and read actions on floppy
  18. ; disk are slow.
  19. ;copy "MyProgram:MyProgram" T:oldfile
  20. ;gpatch T:oldfile "MyProgram.patches" T:newfile
  21. ;copy T:newfile "MyProgram:MyProgram"
  22. ;delete >nil: T:oldfile
  23. ;delete >nil: T:newfile
  24.  
  25. echo "*NPatch successful."
  26.  
  27.